#include <iostream>
using namespace std;

int main()
{
	int n;
	cin >> n;
	int temp = 0;
	for(int i = n;i > 0;i--){
		for(int j = 1;j<=i;j++){
			printf("%02d",j+temp);
		}
		temp = temp + i;
		cout << endl;
	}
	
	return 0;
}
